Constrained Partial
نویسندگان
چکیده
Partial deduction based upon the Lloyd and Shepherdson framework generates a spe-cialised program given a set of atoms. Each such atom represents all its instances. This can severely limit the specialisation potential of partial deduction. We therefore extend the precision the Lloyd and Shepherdson approach by integrating ideas from constraint logic programming. We formally prove correctness of this new framework of constrained partial deduction and illustrate its potential on some examples. In contrast to ordinary (full) evaluation, a partial evaluator is given a program P along with only part of its input, called the static input. The remaining part of the input, called the dynamic input, will only be known at some later point in time. Given the static input S, the partial evaluator then produces a specialised version P S of P which, when given the dynamic input D, produces the same output as the original program P. The goal is to exploit the static input in order to derive more eecient programs. To obtain the specialised program P S , a partial evaluator performs a mixture of evaluation, i.e. it executes those parts of P which only depend on the static input S, and of code generation for those parts of P which require the dynamic input D. Because part of the computation has already been performed beforehand by the partial evaluator, the hope that we obtain a more eecient program P S seems justiied. Partial evaluation has received considerable attention in logic programming 9, 18, 29] and functional programming (see e.g. 15] and references therein). In the context of logic programming, full input to a program P consists of a goal G and evaluation corresponds to constructing a complete SLDNF-tree for P fGg. For partial evaluation, the static input then takes the form of a partially instantiated goal G 0 (and the specialised program should be correct and more eecient for all goals which are instances of G 0). In contrast to other programming languages and paradigms, one can still execute P for G 0 and (try to) construct a SLDNF-tree for P fG 0 g. However, because G 0 is not yet fully instantiated, the SLDNF-tree for P fG 0 g is usually innnite and ordinary evaluation will not terminate. A more reened approach to partial evaluation of logic programs is therefore required. A technique which solves this problem is known under the name of partial …
منابع مشابه
A Message-Optimal Distributed Graph Algorithm: Partial Precedence Constrained Scheduling
This paper presents a distributed algorithm for the partial precedence constrained scheduling problem. In the classical precedence constrained scheduling problem all the dependent tasks must be scheduled before the task itself can be scheduled. The partial precedence constrained scheduling problem is a generalized version of the original precedence constrained problem in the sense that the numb...
متن کاملEfficient quadratic penalization through the partial minimization technique
Common computational problems, such as parameter estimation in dynamic models and PDE constrained optimization, require data fitting over a set of auxiliary parameters subject to physical constraints over an underlying state. Naive quadratically penalized formulations, commonly used in practice, suffer from inherent ill-conditioning. We show that surprisingly the so-called partial minimization ...
متن کاملPDI&PDE-constrained optimization problems with curvilinear functional quotients as objective vectors
In this work we introduce and perform a study on the multitime multi-objective fractional variational problem of minimizing a vector of quotients of path independent curvilinear integral functionals (MFP ) subject to certain partial differential equations (PDE) and/or partial differential inequations (PDI), using a geometrical language. The paper is organized as follows: §1 formulates a PDI&PDE...
متن کاملCompletable Partial Solutions in Constraint Programming and Constraint-Based Scheduling
The paper introduces the notion of freely completable partial solutions to characterize constraint satisfaction problems that have components which are relatively easy to solve and are only loosely connected to the remaining parts of the problem. Discovering such partial solutions during the solution process can result in strongly pruned search trees. We give a general definition of freely comp...
متن کاملSingular constrained linear systems
In the linear system Ax = b the points x are sometimes constrained to lie in a given subspace S of column space of A. Drazin inverse for any singular or nonsingular matrix, exist and is unique. In this paper, the singular consistent or inconsistent constrained linear systems are introduced and the effect of Drazin inverse in solving such systems is investigated. Constrained linear system arise ...
متن کاملSystem Entropy Measurement of Stochastic Partial Differential Systems
Abstract: System entropy describes the dispersal of a system’s energy and is an indication of the disorder of a physical system. Several system entropy measurement methods have been developed for dynamic systems. However, most real physical systems are always modeled using stochastic partial differential dynamic equations in the spatio-temporal domain. No efficient method currently exists that ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1997